using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Fricchettone
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void TextBox4_TextChanged(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("testApi.aspx?hostkey=" + hostkey.Text + "&command=signup&username=" + Username.Text + "&password=" + Password.Text + "&country=" + Country.Text
            + "&region=" + Region.Text + "&city=" + City.Text + "&sex=" + Sex.Text + "&birthdate=" + Birthdate.Text + "&notes=" + Notes.Text + "&email=" + Email.Text);
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Response.Redirect("testApi.aspx?hostkey=" + hostkey.Text + "&command=postforum&userid=" + userid.Text + "&forumid=" + forumid.Text
            + "&threadid=" + threadid.Text + "&subject=" + subject.Text + "&body=" + body.Text);
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Response.Redirect("testApi.aspx?hostkey=" + hostkey.Text + "&command=postforumsignup&username=" + Username.Text + "&password=" + Password.Text + "&country=" + Country.Text
            + "&region=" + Region.Text + "&city=" + City.Text + "&sex=" + Sex.Text + "&birthdate=" + Birthdate.Text + "&email=" + Email.Text + "&forumid=" + forumid.Text
            + "&threadid=" + threadid.Text + "&subject=" + subject.Text + "&body=" + body.Text);
        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            Response.Redirect("testApi.aspx?hostkey=" + hostkey.Text + "&command=signon&username=" + UsernameLogin.Text + "&password=" + PasswordLogin.Text + "&language=it");
        }
    }
}
